package com.dwxt.cdms.controller;

import com.dwxt.cdms.entity.Relation;
import com.dwxt.cdms.service.RelationService;
import com.dwxt.common.base.BaseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/cdms/relatio")
@RestController
public class RelationSmall {

    @Autowired
    private RelationService relationService;

    @RequestMapping("/unbind")
    public BaseResult unbind(Relation relation) {
        return relationService.unbind(relation);
    }
}
